#!/usr/bin/env node

const fs       = require('fs'),
      fileName = process.argv[2], 
      log      = console.log;

//fs.createReadStream(fileName).pipe(process.stdout);


let stm = fs.createReadStream(fileName);
stm.on('error',(e)=>{
  log(e.message);
});
stm.pipe(process.stdout);
//用流的方式读取文件内容并将管道接入到标准输出流上

